#include <fstream>
#include <iostream>
using namespace std;

// PLACE YOUR NAME HERE

const MAXNAME = 20;

int main()
{
	ifstream inData;
	inData.open("grades.txt");

	char name[MAXNAME + 1];  // holds student name
	float average;  // holds student average


	inData.get(name,MAXNAME+1);
	while (inData)
	{
		inData >> average;
		// FILL IN THE CODE to print out name and 
		// student average

		// FILL IN THE CODE to complete the while 
		// loop so that the rest of the student
		// names and average are read in properly
	}

	return 0;
}